
<!DOCTYPE HTML>
<html lang="zh-hans" >
    <head>
        <meta charset="UTF-8">
        <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
        <title>部署 · 臭大佬</title>
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <meta name="description" content="">
        <meta name="generator" content="GitBook 3.2.3">
        <meta name="author" content="Vijay">
        
        
    
    <link rel="stylesheet" href="gitbook/style.css">

    
            
                
                <link rel="stylesheet" href="gitbook/gitbook-plugin-splitter/splitter.css">
                
            
                
                <link rel="stylesheet" href="gitbook/gitbook-plugin-expandable-chapters-small/expandable-chapters-small.css">
                
            
                
                <link rel="stylesheet" href="gitbook/gitbook-plugin-anchors/plugin.css">
                
            
                
                <link rel="stylesheet" href="gitbook/gitbook-plugin-donate/plugin.css">
                
            
                
                <link rel="stylesheet" href="gitbook/gitbook-plugin-anchor-navigation-ex/style/plugin.css">
                
            
                
                <link rel="stylesheet" href="gitbook/gitbook-plugin-highlight/website.css">
                
            
                
                <link rel="stylesheet" href="gitbook/gitbook-plugin-search/search.css">
                
            
                
                <link rel="stylesheet" href="gitbook/gitbook-plugin-fontsettings/website.css">
                
            
        

    

    
        
    

        
    
    
    
    
    <meta name="HandheldFriendly" content="true"/>
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <link rel="apple-touch-icon-precomposed" sizes="152x152" href="gitbook/images/apple-touch-icon-precomposed-152.png">
    <link rel="shortcut icon" href="gitbook/images/favicon.ico" type="image/x-icon">

    
    <link rel="next" href="upgrade.html" />
    
    
    <link rel="prev" href="installation.html" />
    

    
    
    
    
        
        <link rel="apple-touch-icon" sizes="120x120" href=".">
        
        <link rel="apple-touch-icon" sizes="180x180" href=".">
        
    

    <style>
    @media only screen and (max-width: 640px) {
        .book-header .hidden-mobile {
            display: none;
        }
    }
    </style>
    <script>
        window["gitbook-plugin-github-buttons"] = {"buttons":[{"user":"Galloping-Vijay","repo":"laravel-wjfcms","type":"star","size":"small","count":true}]};
    </script>

    </head>
    <body>
        
<div class="book">
    <div class="book-summary">
        
            
<div id="book-search-input" role="search">
    <input type="text" placeholder="输入并搜索" />
</div>

            
                <nav role="navigation">
                


<ul class="summary">
    
    
    
        
        <li>
            <a href="https://www.choudalao.com" target="_blank" class="custom-link">臭大佬首页</a>
        </li>
    
    

    
    <li class="divider"></li>
    

    
        
        
    
        <li class="chapter " data-level="1.1" data-path="./">
            
                <a href="./">
            
                    
                    前言
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.1.1" data-path="contact.html">
            
                <a href="contact.html">
            
                    
                    联系方式
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.1.2" data-path="reward.html">
            
                <a href="reward.html">
            
                    
                    支持与捐赠
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.1.3" data-path="changelog.html">
            
                <a href="changelog.html">
            
                    
                    更新记录
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.2" data-path="development.html">
            
                <a href="development.html">
            
                    
                    搭建环境
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.2.1" data-path="windows.html">
            
                <a href="windows.html">
            
                    
                    windows
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.2" data-path="linux.html">
            
                <a href="linux.html">
            
                    
                    linux
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.3" data-path="install.html">
            
                <a href="install.html">
            
                    
                    安装使用
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.3.1" data-path="installation.html">
            
                <a href="installation.html">
            
                    
                    安装
            
                </a>
            

            
        </li>
    
        <li class="chapter active" data-level="1.3.2" data-path="dispose.html">
            
                <a href="dispose.html">
            
                    
                    部署
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.3" data-path="upgrade.html">
            
                <a href="upgrade.html">
            
                    
                    升级
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.4" data-path="thinkphpwjfcms.html">
            
                <a href="thinkphpwjfcms.html">
            
                    
                    thinkphp-wjfcms获取
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.4" data-path="backstage.html">
            
                <a href="backstage.html">
            
                    
                    后台功能
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5" data-path="reception.html">
            
                <a href="reception.html">
            
                    
                    前台操作
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6" data-path="note.html">
            
                <a href="note.html">
            
                    
                    基础功能
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.6.1" data-path="controller.html">
            
                <a href="controller.html">
            
                    
                    控制器
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.2" data-path="model.html">
            
                <a href="model.html">
            
                    
                    模型
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.3" data-path="view.html">
            
                <a href="view.html">
            
                    
                    视图
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.7" >
            
                <span>
            
                    
                    其他
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.7.1" data-path="github.html">
            
                <a href="github.html">
            
                    
                    github分支说明
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    

    

    <li class="divider"></li>

    <li>
        <a href="https://www.gitbook.com" target="blank" class="gitbook-link">
            本书使用 GitBook 发布
        </a>
    </li>
</ul>


                </nav>
            
        
    </div>

    <div class="book-body">
        
            <div class="body-inner">
                
                    

<div class="book-header" role="navigation">
    

    <!-- Title -->
    <h1>
        <i class="fa fa-circle-o-notch fa-spin"></i>
        <a href="." >部署</a>
    </h1>
</div>




                    <div class="page-wrapper" tabindex="-1" role="main">
                        <div class="page-inner">
                            
<div id="book-search-results">
    <div class="search-noresults">
    
                                <section class="normal markdown-section">
                                
                                <div id="anchor-navigation-ex-navbar"><i class="fa fa-navicon"></i><ul><li><span class="title-icon "></span><a href="#&#x4F2A;&#x9759;&#x6001;"><b></b>&#x4F2A;&#x9759;&#x6001;</a></li><ul><li><span class="title-icon "></span><a href="#nginx&#x914D;&#x7F6E;"><b></b>nginx&#x914D;&#x7F6E;</a></li><li><span class="title-icon "></span><a href="#&#x4EE5;&#x5B9D;&#x5854;&#x4E3A;&#x4F8B;"><b></b>&#x4EE5;&#x5B9D;&#x5854;&#x4E3A;&#x4F8B;</a></li></ul><li><span class="title-icon "></span><a href="#linux&#x6743;&#x9650;&#x95EE;&#x9898;"><b></b>linux&#x6743;&#x9650;&#x95EE;&#x9898;</a></li><li><span class="title-icon "></span><a href="#&#x8BBF;&#x95EE;"><b></b>&#x8BBF;&#x95EE;</a></li></ul></div><a href="#&#x4F2A;&#x9759;&#x6001;" id="anchorNavigationExGoTop"><i class="fa fa-arrow-up"></i></a><h1 id="&#x4F2A;&#x9759;&#x6001;"><a name="&#x4F2A;&#x9759;&#x6001;" class="anchor-navigation-ex-anchor" href="#&#x4F2A;&#x9759;&#x6001;"><i class="fa fa-link" aria-hidden="true"></i></a><a name="&#x4F2A;&#x9759;&#x6001;" class="plugin-anchor" href="#&#x4F2A;&#x9759;&#x6001;"><i class="fa fa-link" aria-hidden="true"></i></a>&#x4F2A;&#x9759;&#x6001;</h1>
<p> &#x505A;&#x5B8C;&#x4EE5;&#x4E0A;&#x5DE5;&#x4F5C;&#x540E;,&#x8BBF;&#x95EE;&#x7AD9;&#x70B9;&#x8FD8;&#x5B58;&#x5728;&#x95EE;&#x9898;,&#x8FD8;&#x9700;&#x8981;&#x914D;&#x7F6E;&#x4F2A;&#x9759;&#x6001;,&#x628A;&#x7AD9;&#x70B9;&#x8FD0;&#x884C;&#x76EE;&#x5F55;&#x6307;&#x5411;public</p>
<p><img src="images/screenshot_1565621361361.png" alt=""></p>
<h2 id="nginx&#x914D;&#x7F6E;"><a name="nginx&#x914D;&#x7F6E;" class="anchor-navigation-ex-anchor" href="#nginx&#x914D;&#x7F6E;"><i class="fa fa-link" aria-hidden="true"></i></a><a name="nginx&#x914D;&#x7F6E;" class="plugin-anchor" href="#nginx&#x914D;&#x7F6E;"><i class="fa fa-link" aria-hidden="true"></i></a>nginx&#x914D;&#x7F6E;</h2>
<p>&#x5982;&#x679C;&#x662F;nginx,&#x5927;&#x6982;&#x7684;&#x914D;&#x7F6E;&#x5982;&#x4E0B;</p>
<p><img src="images/1584254935.png" alt=""></p>
<pre><code class="lang-php">
server {
        listen        <span class="hljs-number">80</span>;
        server_name  dev.wjf.net;
        root   <span class="hljs-string">&quot;D:/wwwroot/test/laravel-wjfcms/public&quot;</span>;
         location / {
            index index.php index.html;
            <span class="hljs-comment"># Check if a file exists, or route it to index.php.</span>
            try_files $uri $uri/ /exploit/index.php?$query_string;
            <span class="hljs-keyword">if</span> (!-e $request_filename) {
                rewrite  ^(.*)$  /index.php?s=$<span class="hljs-number">1</span>  last;
                <span class="hljs-keyword">break</span>;
            }
            autoindex  off;
        }
        location ~ \.php(.*)$ {
            fastcgi_pass   <span class="hljs-number">127.0</span><span class="hljs-number">.0</span><span class="hljs-number">.1</span>:<span class="hljs-number">9000</span>;
            fastcgi_index  index.php;
            fastcgi_split_path_info  ^((?U).+\.php)(/?.+)$;
            fastcgi_param  SCRIPT_FILENAME  $document_root$fastcgi_script_name;
            fastcgi_param  PATH_INFO  $fastcgi_path_info;
            fastcgi_param  PATH_TRANSLATED  $document_root$fastcgi_path_info;
            <span class="hljs-keyword">include</span>        fastcgi_params;
        }
}
</code></pre>
<h2 id="&#x4EE5;&#x5B9D;&#x5854;&#x4E3A;&#x4F8B;"><a name="&#x4EE5;&#x5B9D;&#x5854;&#x4E3A;&#x4F8B;" class="anchor-navigation-ex-anchor" href="#&#x4EE5;&#x5B9D;&#x5854;&#x4E3A;&#x4F8B;"><i class="fa fa-link" aria-hidden="true"></i></a><a name="&#x4EE5;&#x5B9D;&#x5854;&#x4E3A;&#x4F8B;" class="plugin-anchor" href="#&#x4EE5;&#x5B9D;&#x5854;&#x4E3A;&#x4F8B;"><i class="fa fa-link" aria-hidden="true"></i></a>&#x4EE5;&#x5B9D;&#x5854;&#x4E3A;&#x4F8B;</h2>
<p>&#x8FDB;&#x5165;&#x5B9D;&#x5854;&#x9762;&#x677F;-&gt;&#x7AD9;&#x70B9;,&#x70B9;&#x51FB;&#x76F8;&#x5E94;&#x7684;&#x7AD9;&#x70B9;</p>
<p><img src="images/screenshot_1565621661775.png" alt="screenshot_1565621661775"></p>
<p>win&#x4E0B;&#x6CA1;&#x6709;laravel5,&#x9009;&#x62E9;thinkphp</p>
<p><img src="images/screenshot_1565621745758.png" alt=""></p>
<h1 id="linux&#x6743;&#x9650;&#x95EE;&#x9898;"><a name="linux&#x6743;&#x9650;&#x95EE;&#x9898;" class="anchor-navigation-ex-anchor" href="#linux&#x6743;&#x9650;&#x95EE;&#x9898;"><i class="fa fa-link" aria-hidden="true"></i></a><a name="linux&#x6743;&#x9650;&#x95EE;&#x9898;" class="plugin-anchor" href="#linux&#x6743;&#x9650;&#x95EE;&#x9898;"><i class="fa fa-link" aria-hidden="true"></i></a>linux&#x6743;&#x9650;&#x95EE;&#x9898;</h1>
<p>&#x5728;&#x5B89;&#x88C5; Laravel &#x540E;&#xFF0C;&#x4F60;&#x53EF;&#x80FD;&#x9700;&#x8981;&#x914D;&#x7F6E;&#x4E00;&#x4E9B;&#x6743;&#x9650;&#x3002;<code>storage</code>&#x548C;<code>bootstrap/cache</code> &#x3001;<code>public</code>&#x76EE;&#x5F55;&#x5728;&#x4F60;&#x7684; web &#x670D;&#x52A1;&#x4E0B;&#x5E94;&#x8BE5;&#x662F;&#x53EF;&#x5199;&#x7684;&#x6743;&#x9650;&#xFF0C;&#x5426;&#x5219; Laravel &#x5C06;&#x65E0;&#x6CD5;&#x8FD0;&#x884C;&#x3002;</p>
<p>&#x62A5;&#x9519;&#x5982;&#x4E0B;:</p>
<p><img src="images/screenshot_1565621987669.png" alt=""></p>
<p>&#x8FD0;&#x884C;&#x5982;&#x4E0B;&#x547D;&#x4EE4;</p>
<p><code>sudo chmod -R 777 vendor storage bootstrap/cache public</code></p>
<h1 id="&#x8BBF;&#x95EE;"><a name="&#x8BBF;&#x95EE;" class="anchor-navigation-ex-anchor" href="#&#x8BBF;&#x95EE;"><i class="fa fa-link" aria-hidden="true"></i></a><a name="&#x8BBF;&#x95EE;" class="plugin-anchor" href="#&#x8BBF;&#x95EE;"><i class="fa fa-link" aria-hidden="true"></i></a>&#x8BBF;&#x95EE;</h1>
<p>&#x81F3;&#x6B64;&#x5B89;&#x88C5;&#x5B8C;&#x6210;&#xFF0C;&#x540E;&#x53F0;&#x5730;&#x5740;&#x4E3A;:&#x57DF;&#x540D;/admin&#xFF0C;&#x5982;&#xFF1A;<a href="http://dev.wjf.net/admin" target="_blank">http://dev.wjf.net/admin</a></p>
<p>&#x540E;&#x53F0;&#x9ED8;&#x8BA4;&#x8D26;&#x53F7; :13000000000</p>
<p>&#x5BC6;&#x7801;:123456</p>

                                
                                </section>
                            
    </div>
    <div class="search-results">
        <div class="has-results">
            
            <h1 class="search-results-title"><span class='search-results-count'></span> results matching "<span class='search-query'></span>"</h1>
            <ul class="search-results-list"></ul>
            
        </div>
        <div class="no-results">
            
            <h1 class="search-results-title">No results matching "<span class='search-query'></span>"</h1>
            
        </div>
    </div>
</div>

                        </div>
                    </div>
                
            </div>

            
                
                <a href="installation.html" class="navigation navigation-prev " aria-label="Previous page: 安装">
                    <i class="fa fa-angle-left"></i>
                </a>
                
                
                <a href="upgrade.html" class="navigation navigation-next " aria-label="Next page: 升级">
                    <i class="fa fa-angle-right"></i>
                </a>
                
            
        
    </div>

    <script>
        var gitbook = gitbook || [];
        gitbook.push(function() {
            gitbook.page.hasChanged({"page":{"title":"部署","level":"1.3.2","depth":2,"next":{"title":"升级","level":"1.3.3","depth":2,"path":"upgrade.md","ref":"upgrade.md","articles":[]},"previous":{"title":"安装","level":"1.3.1","depth":2,"path":"installation.md","ref":"installation.md","articles":[]},"dir":"ltr"},"config":{"plugins":["-sharing","splitter","expandable-chapters-small","anchors","github","github-buttons","donate","sharing-plus","anchor-navigation-ex","favicon"],"styles":{"website":""},"pluginsConfig":{"github":{"url":"https://github.com/Galloping-Vijay/laravel-wjfcms"},"splitter":{},"search":{},"sharing-plus":{"qq":false,"all":["facebook","google","twitter","instapaper","linkedin","pocket","stumbleupon"],"douban":false,"facebook":true,"weibo":false,"instapaper":false,"whatsapp":false,"hatenaBookmark":false,"twitter":true,"messenger":false,"line":false,"vk":false,"pocket":true,"google":false,"viber":false,"stumbleupon":false,"qzone":false,"linkedin":false},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"donate":{"alipay":"./images/支付宝支付.jpg","alipayText":"支付宝打赏","button":"打赏","title":"","wechat":"./images/微信支付.png","wechatText":"微信打赏"},"fontsettings":{"theme":"white","family":"sans","size":2},"highlight":{},"anchor-navigation-ex":{"associatedWithSummary":true,"float":{"floatIcon":"fa fa-navicon","level1Icon":"","level2Icon":"","level3Icon":"","showLevelIcon":false},"mode":"float","multipleH1":true,"pageTop":{"level1Icon":"","level2Icon":"","level3Icon":"","showLevelIcon":false},"printLog":false,"showGoTop":true,"showLevel":false},"favicon":{"shortcut":"","bookmark":"","appleTouch":"","appleTouchMore":{"120x120":"","180x180":""}},"github-buttons":{"buttons":[{"user":"Galloping-Vijay","repo":"laravel-wjfcms","type":"star","size":"small","count":true}]},"expandable-chapters-small":{},"sharing":{"qq":false,"all":["google","facebook","weibo","twitter","qq","qzone","linkedin","pocket"],"douban":false,"facebook":false,"weibo":false,"instapaper":false,"whatsapp":false,"hatenaBookmark":false,"twitter":false,"messenger":false,"line":false,"vk":false,"pocket":false,"google":false,"viber":false,"stumbleupon":false,"qzone":false,"linkedin":false},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false},"anchors":{}},"theme":"default","author":"Vijay","pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"variables":{},"title":"臭大佬","language":"zh-hans","links":{"sidebar":{"臭大佬首页":"https://www.choudalao.com"}},"gitbook":"3.2.3","description":"每一次经历，每一段时光都值得被记录，它们将会是你未来的财富。"},"file":{"path":"dispose.md","mtime":"2021-09-18T09:36:15.260Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2021-09-18T09:41:37.518Z"},"basePath":".","book":{"language":""}});
        });
    </script>
</div>

        
    <script src="gitbook/gitbook.js"></script>
    <script src="gitbook/theme.js"></script>
    
        
        <script src="gitbook/gitbook-plugin-splitter/splitter.js"></script>
        
    
        
        <script src="gitbook/gitbook-plugin-expandable-chapters-small/expandable-chapters-small.js"></script>
        
    
        
        <script src="gitbook/gitbook-plugin-github/plugin.js"></script>
        
    
        
        <script src="gitbook/gitbook-plugin-github-buttons/plugin.js"></script>
        
    
        
        <script src="gitbook/gitbook-plugin-donate/plugin.js"></script>
        
    
        
        <script src="gitbook/gitbook-plugin-sharing-plus/buttons.js"></script>
        
    
        
        <script src="gitbook/gitbook-plugin-search/search-engine.js"></script>
        
    
        
        <script src="gitbook/gitbook-plugin-search/search.js"></script>
        
    
        
        <script src="gitbook/gitbook-plugin-lunr/lunr.min.js"></script>
        
    
        
        <script src="gitbook/gitbook-plugin-lunr/search-lunr.js"></script>
        
    
        
        <script src="gitbook/gitbook-plugin-fontsettings/fontsettings.js"></script>
        
    

    </body>
</html>

